import {createRouter,createWebHistory} from 'vue-router'

import Layout from '../component/Layout.vue'
import Interface from '../pages/Interface.vue'
import AutoTest from '../pages/AutoTest.vue'
import ShareFile from '../pages/ShareFile.vue'
import ReqHistory from '../pages/ReqHistory.vue'
import Setting from '../pages/Setting.vue'

const router=createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/layout',
            component:Layout,
            children:[
                {
                    path:'/',
                    component:Interface
                },
                {
                    path:'/auto-test',
                    component:AutoTest
                },
                {
                    path:'/share-file',
                    component:ShareFile
                },
                {
                    path:'/req-history',
                    component:ReqHistory
                },
                {
                    path:'/setting',
                    component:Setting
                },
            ]
        }
    ]
})

export default router